/*
 * VariableDeclAst.h
 *
 *  Created on: 5 Nov 2010
 *      Author: kn308
 */

#ifndef VARIABLEDECLAST_H_
#define VARIABLEDECLAST_H_

#include <MAlice/Ast/ExpressionAst.h>
#include <MAlice/Ast/TypeAst.h>

namespace MAlice
{

class VariableDeclAst: public MAlice::ExpressionAst
{
private:
	ExpressionAst* mSize;
	TypeAst* mType;
	string mName;

public:
	VariableDeclAst(const string& name, TypeAst* type, ExpressionAst* size);
	virtual ~VariableDeclAst();
	virtual llvm::Value* generate();
};

}

#endif /* VARIABLEDECLAST_H_ */
